package com.mvvm.start.common.api

import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Streaming
import retrofit2.http.Url

/**
 * @author lmy
 * @功能:
 * @Creat 2/23/21 2:36 PM
 * @Compony 465008238@qq.com
 */

interface DownApi {
    /**
     * 文件下载
     */
    @Streaming //大文件时要加不然会OOM
    @GET
    fun downloadFile(@Url fileUrl: String?): Call<ResponseBody>


}